Authlib Flask This function uses Authlib's Flask client integration and OAuth2 client to register and configure an OAuth2 client in a Flask application, enabling third-party authentication. Flask extension 2024-12-16 12:16:23 12 views
Flask Sentry This code defines a Flask web application that can receive POST requests and use the Sentry library to log messages to Sentry. Web Application 2024-12-16 12:14:58 9 views
Authlib Flask This function uses the Flask client integration from the Authlib library to set up an OAuth client for handling Google OAuth authentication. Function 2024-12-16 12:14:27 7 views
Flask Sentry This function creates a Flask application that contains a POST route to receive error data and send it to Sentry. The type of code 2024-12-16 12:14:00 10 views
The packages This function performs numerical integration of a given function over a specified interval, supporting multiple numerical integration methods. The type of code 2024-12-16 12:13:53 6 views
Basemap Numpy This function uses the Basemap library to draw countries and cities on a map. By passing in lists of latitudes, longitudes, and city names, the function marks these cities on the map and displays national boundaries. Drawing function 2024-12-16 12:13:39 7 views
Celery Python This function defines a function named random_task that accepts two parameters x and y. The function internally creates a Celery application and defines a task named add that takes two arguments and returns their sum. Then, it uses the add task to asynchronously add x and y, and returns the result. Celery mission 2024-12-16 12:13:21 5 views
Sentry Flask This function is used to log exceptions raised by Flask requests and perform error tracking with the Sentry SDK. It initializes Sentry with Flask integration and captures exceptions, while also attaching additional request information. Function 2024-12-16 12:13:14 6 views
Authlib Flask This function creates an OAuth client using the Authlib library to interact with OAuth providers such as Google to obtain user authorization and access tokens. Function 2024-12-16 12:12:22 7 views
Flask-Login Flask This code defines a User model that inherits from Flask-Login's UserMixin and combines with SQLAlchemy's Model. It includes fields for user ID, username, and password hash, and provides methods for setting and checking passwords. The type of code 2024-12-16 12:11:24 8 views